package o;

import java.util.HashMap;
import java.util.Map;

public abstract class cvx {
    private static Map<String, a> ˏ = new HashMap();

    public static class a {
        private String ˊ = "";
        private boolean ˏ = false;
        private String ॱ;

        public String ॱ() {
            if (this.ˏ) {
                return this.ॱ;
            }
            return this.ˊ;
        }

        public void ˊ(String str) {
            this.ˊ = str;
        }

        public String ˊ() {
            return this.ॱ;
        }

        public boolean ˏ() {
            return this.ˏ;
        }

        public String toString() {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append("addr=").append(this.ˊ).append(", ");
            stringBuilder.append("useBackupAddr=").append(this.ˏ).append(", ");
            stringBuilder.append("backupAddr=").append(this.ॱ);
            return stringBuilder.toString();
        }
    }

    public static void ॱ(String str, a aVar) {
        ˏ.put(str, aVar);
        if (str.equals("ota.host")) {
            bmt.ॱ(ˎ("ota.host"));
            bmt.ˎ(443);
        }
    }

    public static String ˎ(String str) {
        a aVar = (a) ˏ.get(str);
        if (aVar == null) {
            return "";
        }
        return aVar.ˏ() ? aVar.ˊ() : aVar.ॱ();
    }

    public static a ˏ(String str) {
        a aVar = (a) ˏ.get(str);
        if (aVar == null) {
            return new a();
        }
        return aVar;
    }
}
